import com.qf.service.AccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName Demo
 * @Description TODO
 * @Author Windy
 * @Date 2022/8/31 10:22
 * @Version 1.0
 **/
public class Demo {
    @Test
    public void testTransaction(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        AccountService service = (AccountService) context.getBean("accountService");
        service.transfer("eric","james",100.0);
    }
}
